package com.ray.service;

import com.ray.dao.UserAnnotation;
import com.ray.pojo.User;
import com.ray.utils.SqlSessionUtil;
import org.apache.ibatis.session.SqlSession;

import java.util.List;

public class UserAnnotationServiceImpl implements UserAnnotationService
{
    /**
     * @return
     */
    @Override
    public List<User> getUserList()
    {
        try (SqlSession sqlSession = SqlSessionUtil.getSqlSession())
        {
            UserAnnotation mapper = sqlSession.getMapper(UserAnnotation.class);
            List<User> userList = mapper.getUserList();
            return userList;
        }
    }
}
